﻿<UserControl x:Class="MouseExtender.Controls.UserControls.LauncherUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:uc="clr-namespace:MouseExtender.Controls.UserControls"
    Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <Storyboard x:Key="sbMovePanel" Name="sbMovePanel" Duration="00:00:0.5"  Completed="sbMovePanel_Completed">
            <DoubleAnimationUsingKeyFrames Name="moveMainPanelLeft" BeginTime="00:00:00" Storyboard.TargetProperty="(Canvas.Left)">
                <SplineDoubleKeyFrame KeyTime="00:00:00"/>
                <SplineDoubleKeyFrame KeyTime="00:00:0.5"  KeySpline="0.6,0.0 0.9,0.00"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Name="moveBackPanelLeft" BeginTime="00:00:00" Storyboard.TargetProperty="(Canvas.Left)">
                <SplineDoubleKeyFrame KeyTime="00:00:00"/>
                <SplineDoubleKeyFrame KeyTime="00:00:0.5"  KeySpline="0.6,0.0 0.9,0.00"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Name="changeCanvasHeight" BeginTime="00:00:00" Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="cnvRoot">
                <SplineDoubleKeyFrame KeyTime="00:00:00"/>
                <SplineDoubleKeyFrame KeyTime="00:00:0.5"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Canvas Name="cnvRoot" Margin="4,3,5,5" ClipToBounds="True" >
        <uc:TabUC x:Name="tabPanelMain" Canvas.Left="0" Visibility="Collapsed" SizeChanged="tabPanel_SizeChanged"/>
        <uc:TabUC x:Name="tabPanelBack" Canvas.Left="0" Visibility="Collapsed" SizeChanged="tabPanel_SizeChanged"/>
    </Canvas>
</UserControl>
